package com.ylb.rent.exception;

import lombok.Data;

/**
 * @AUTHOR:游李滨
 * @DATE:2023/7/6 8:57
 */

public class BusinessException extends Exception {

    private int code;
    private String msg;
    public BusinessException(int code,String msg){
        this.code=code;
        this.msg=msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
